package ${package};

import com.application.base.jpa.condition.MatchType;
import com.application.base.jpa.condition.QueryCondition;
import com.application.base.model.BaseModel;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.jpa.domain.Specification;
import javax.persistence.*;


@Entity
@Table(name="${tableName}")
public class ${className} extends BaseModel{

<#list exmallEntity.fieldList as field>
    public void set${field.fieldNameUpperFirstLetter}(${field.fieldType} ${field.fieldName}) {
    this.${field.fieldName} = ${field.fieldName};
    }
    public ${field.fieldType} get${field.fieldNameUpperFirstLetter}() {
    return ${field.fieldName};
    }
</#list>


   @Override
   public Specification toSpec() {
return super.toSpecWithAnd();
   }
}
